home *** CD-ROM | disk | FTP | other *** search
- Path: news.production.compuserve.com!news
- From: Steve Harris <100016.2166@CompuServe.COM>
- Newsgroups: comp.lang.c++,comp.lang.fortran
- Subject: Calling FORTRAN from C++
- Date: 8 Jan 1996 14:29:13 GMT
- Organization: CompuServe, Inc. (1-800-689-0736)
- Message-ID: <4cr9np$2hr$1@mhadg.production.compuserve.com>
-
- Hello,
- Can anyone provide me with a simple example, with source code and
- an 'idiots' step guide, on how to call FORTRAN code from MS
- VISUAL C++? I have read through the section on mixed language
- programming in the 'Programming Techniques' manual for MS VISUAL
- C++, but can't even get the examples in that text to work. When I
- issue the following command to link the two object files:
-
- link small test,,,,
-
- I get the following errror:
-
- test.obj : fatal error L1101 : invalid object module
- Object file offset : 1 Record type : 4c
-
- A simple working example of a few lines would be much
- appreciated, especially showing how to compile/link and call the
- FORTRAN code from C++.
- Thanks for your time :-)
- Steve Harris
-